package com.ruoyi.mall.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员购物车业务对象 customer_cart
 *
 * @author ruoyi
 * @date 2025-02-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CustomerCartBo extends BaseEntity {

    /**
     * 会员购物车表主键
     */
    @NotNull(message = "会员购物车表主键不能为空", groups = { EditGroup.class })
    private Long customerCartId;

    /**
     * 关联商品表主键
     */
    @NotNull(message = "关联商品表主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long goodsId;

    /**
     * 关联会员表主键
     */
    @NotNull(message = "关联会员表主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long customerId;

    /**
     * 商品金额
     */
    @NotNull(message = "商品金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long goodsMoney;

    /**
     * 商品数量
     */
    @NotNull(message = "商品数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long goodsCount;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
